<!DOCTYPE html>
<html>
<head>
    <title>{$category.name} {$category.seo_title} {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$category.seo_keywords},{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$category.seo_description},{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
    <hook name="before_head_end"/>
</head>

<body class="home blog site-layout-2">
    <!-- 头部 -->  
    <include file="public@nav"/>
	<!-- /头部 -->  
	
    <!-- 主体 -->
    <div id="main-container" class="container clearfix">
		<section class="post-left">
				
		<!-- 文章列表 -->
		<div class="index-main clearfix">
			<div class="main-title">
				<h4 class="post-left-title fl">'{$keyword}' 搜索结果</h4>
				<div class="fr"></div>
			</div>

			<div class="row">
			<php>
				$where=[
				'post.create_time'=>['egt',0],
				'post.post_title'=>['like',"%$keyword%"]
				];
			</php>

			<portal:articles item="vo" where="$where" order="post.create_time DESC" page="10"
				>
				<div class="article-box clearfix excerpt-1">
					<!-- col-md-4 -->
					<div class="col-md-4">
						<div class="thumbnail">
							<a class="img-wraper" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">
							<if condition="empty($vo.more.thumbnail)">
								<img src="__TMPL__/public/assets/images/default_tupian4.png" class="wp-post-image" alt="{$vo.post_title}"/>
							<else/>
								<img src="{:cmf_get_image_url($vo.more.thumbnail)}" class="wp-post-image" alt="{$vo.post_title}"/>
							</if>
							</a>
						</div>
					</div>
					<!-- /col-md-4 -->

					<!-- col-md-8 -->
					<div class="col-md-8">
						<h2>
							<a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">{$vo.post_title}</a>
						</h2>
						<p class="txtcont hidden-xs">
							<a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">{$vo.post_excerpt}</a>
						</p>
						<div class="meta">
							<span class="label label-info"><a href="#">{$vo.post_keywords}</a></span>	<time class="item"><i class="fa fa-clock-o"></i>{$vo.published_time|date="Y-m-d",###}</time>
						</div>
					</div>
				</div>


				<!-- <div class="list-boxes">
					<h2><a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">{$vo.post_title}</a>
					</h2>
					<p>{$vo.post_excerpt}</p>
					<div>
						<div class="pull-left">
							<div class="list-actions">
								<a href="javascript:;"><i class="fa fa-eye"></i><span>{$vo.post_hits}</span></a>
								<a href="{:cmf_url('portal/Article/doLike',array('id'=>$vo['id']))}"
								   class="js-count-btn"><i class="fa fa-thumbs-up"></i><span class="count">{$vo.post_like}</span></a>

									<i class="fa fa-star-o"></i>
								</a>
							</div>
						</div>
						<a class="btn btn-warning btn-sm pull-right"
						   href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">查看更多</a>
					</div>
				</div> -->
			</portal:articles>
			<div class="pagination">
				<page/>
			</div>
			</div><!-- div.row -->
		</div><!-- /div.index-main -->
		<!-- /文章列表 -->
	  
		</section><!-- /section.post-left -->

<include file='public@sidebar'/>
<include file='public@footer'/>
</div>
<!-- /主体 -->

<include file="public@scripts"/>
<hook name="before_body_end"/>
</body>
</html>